<?php


namespace app\api\command;


use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

//命令行
class Order extends  Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('order')
            ->setDescription('the second command');
    }


    protected function execute(Input $input, Output $output)
    {
       $obj = new \app\common\business\Order();
        while (true) {
            $obj->checkOrderStatus();
            sleep(1);
        }
        // 指令输出
        $output->writeln('second111');
    }

}